import httpSer from "../../http";

const actions = {
    getAlloter({ commit }, params) {
        return httpSer.post('/taskInfo/selectPageByAllocaterId', params);
    },
    getManager({ commit} , params) {
        return httpSer.post('/taskInfo/selectPageByManagerId', params);
    },
    getDetail({ commit }, params) {
        return httpSer.post('/taskInfo/getDetailById', params);
    },
    progressCommit({ commit } , params) {
        return httpSer.post('/progressInfo/addOne', params);
    },
    addSubtask({ commit }, params) {
        return httpSer.post('/taskInfo/addOne', params);
    },
    listProgressInfo({ commit }, params) {
        return httpSer.post('/progressInfo/listProgressInfo', params);
    },
    milestoneFinishApprove({ commit }, params) {
        return httpSer.post('/taskInfo/milestoneFinishApprove', params);
    },
    getTaskList({ commit }, params) {
        return httpSer.post('/taskInfo/listTaskInfo', params);
    },
    removeTask({ commit }, params) {
        return httpSer.post('/taskInfo/removeOne', params);
    },
    updateTask({ commit }, params) {
        return httpSer.post('/taskInfo/updateOne', params);
    },
    taskApprove({ commit }, params) {
        return httpSer.post('/taskInfo/childTaskFinishApprove', params);
    }
}
export default actions